package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.order.service.api.impl.CustomerServiceImpl;
import com.hsgene.user.dto.user.customer.CustomerDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用户服务
 *
 * @author wangbing
 * @version 1.0, 2018/8/7
 */
@FeignClient(name = "ms-mod-user", path = "/v1.0/genetic/testing/customer", fallback = CustomerServiceImpl.class)
public interface CustomerService {

    /**
     * 获取用户信息
     *
     * @param userId 用户id
     * @return 用户信息
     */
    @RequestMapping(value = "{userId}", method = RequestMethod.GET)
    ApiResult<CustomerDto> getUserInfo(@PathVariable("userId") String userId);
}
